/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2023-02-01 18:23:22
 * @LastEditors: Andy
 * @LastEditTime: 2023-02-06 11:51:54
 */
import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('system.application.id'),
    width: 'auto',
    prop: 'clientId',
    fixed: true
  },
  {
    label: i18n.t('system.application.name'),
    width: 'auto',
    prop: 'clientName',
    fixed: true
  },
  {
    label: i18n.t('system.application.authType'),
    minWidth: 180,
    width: 'auto',
    prop: 'authorizationGrantTypes',
    fixed: true
  },
  {
    label: i18n.t('system.application.token'),
    width: 'auto',
    prop: 'accessTokenValidity'
  },
  {
    label: i18n.t('system.application.refresh'),
    width: 'auto',
    prop: 'refreshTokenValidity'
  },
  {
    label: i18n.t('system.application.callbackAddress'),
    width: 'auto',
    prop: 'redirectUris'
  },
  {
    label: i18n.t('system.application.clientImg'),
    width: 'auto',
    prop: 'clientImg'
  },
  {
    label: i18n.t('system.application.isAuth'),
    width: 'auto',
    prop: 'autoapprove'
  },
  {
    label: i18n.t('system.application.state'),
    width: 'auto',
    prop: 'state'
  }
]
export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'oauth:client:update'
  },
  {
    key: 'resetPwd',
    text: i18n.t('common.resetPwd'),
    permissions: 'oauth:client:reserPwd'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'oauth:client:delete'
  }
]
